import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import path from 'path'

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [react()],
  server: {
    port: 3000
  },
  resolve: {
    extensions: ['.ts', '.tsx', '.js', '.json', '.less', '.css', '.png', '.jpg'],
    alias: {
      '@': path.resolve(__dirname, './src')
    }
  },
  build: {
    rollupOptions: {
      external: [],
      output: {
        manualChunks: {
          antd: ['antd']
        }
      }
    }
  }
})